package com.john.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.john.seckill.pojo.Goods;
import com.john.seckill.pojo.Order;
import com.john.seckill.pojo.User;

/**
 * <p>
 *  服务类
 * </p>
 * seckill
 * @author john
 * @since 2021-05-20
 */
public interface IOrderService extends IService<Order> {
    /**
     * 秒杀
     * @param user
     * @param goodsId
     * @return
     */
    Order seckill(User user, Goods goods);
}
